package com.collaboration.proton.dao;

import com.collaboration.proton.entities.Player;
import com.collaboration.proton.entities.UserHero;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author vybfi
 * @param
 * @return 无
 *
 */
@Repository
public interface UserHeroRepository extends CrudRepository<UserHero,Long> {
    @Override
    List<UserHero> findAll();

    UserHero findUserHeroByPlayer(Player player);
}
